package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.UserInfo;
import com.atguigu.srb.core.pojo.vo.LoginVO;
import com.atguigu.srb.core.pojo.vo.RegistVO;
import com.atguigu.srb.core.pojo.vo.UserIndexVO;
import com.atguigu.srb.core.pojo.vo.UserInfoSearchVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户基本信息 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-03-25
 */
public interface UserInfoService extends IService<UserInfo> {

    void saveUser(RegistVO registVO);

    String login(LoginVO loginVO, HttpServletRequest request);

    Page<UserInfo> getUserInfos(UserInfoSearchVO userInfoSearchVO,Page<UserInfo> page);

    boolean isBindMobile(String token);

    void bindMobile(String token, RegistVO registVO);

    UserIndexVO getUserIndexVO(String token);

    String hfbNotify(HttpServletRequest request);

    public UserInfo checkUserStatus(String token);
}
